package designs.models.proxy.example.one;

import java.rmi.Naming;

public class BindRemoteObject {

	public static void main(String[] args) {
		try {
			RemoteConcreteSubject remoteConcreteSubject = new RemoteConcreteSubject(12, 88);
			Naming.rebind("rmi://127.0.0.1/rect", remoteConcreteSubject);
			System.out.println("be ready for client server.....");
		} catch (Exception e) {
			e.printStackTrace();
		}

	}

}
